﻿using System.Data;
using System.Data.SqlClient;

namespace Mite.MsSql
{
	public class MsSqlQueryFactory : SqlQueryFactory
	{
		public MsSqlQueryFactory() : base(TEMPLATE_DIRECTORY)
		{
		}

		protected override string DbTypeToString(DbType dbType)
		{
			var param = new SqlParameter();
			param.DbType = dbType;
			return param.SqlDbType.ToString();
		}

		private const string TEMPLATE_DIRECTORY = "\\Data\\Templates\\MsSql";
	}
}